package com.gsnd.briuppts.mapper;

import com.gsnd.briuppts.entity.BaseAuthority;
import com.gsnd.briuppts.entity.DO.BaseAuthorityExtend;
import com.gsnd.briuppts.entity.DO.BaseAuthoritySimple;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity generator.dao.BaseAuthority
 */
public interface BaseAuthorityMapper {

    // 根据角色的数组，查询所有的权限 =》 动态sql
    List<BaseAuthoritySimple> getAllByRoleIds(@Param("roleIds") List<String> roleIds);

    List<BaseAuthorityExtend> getAllByRoleIdsTree(@Param("roleIds") List<String> roleIds);
}




